﻿<%@ Page Title="旅游指南" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    Inherits="Wjtour.Web.Front.travelindex" %>

<%@ Import Namespace="Wjtour.Domain" %>
<%@ Import Namespace="Wjtour.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <!-[if IE 6]>
    <script language="javascript" src="js/DD_belatedPNG_0.0.8a-min.js"></script>
    <script>
        DD_belatedPNG.fix('.articlelist,img');
    </script>
    <![endif]->
    
    <script language="javascript">
        $(document).ready(function () {
            $('#myTab a:first').tab('show');
            $('#mytab a').click(function (e) {
                e.preventDefault();
                $(this).tab('show');
            });
        });

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <div class="ipage">
        <div class="path tpath">您所在的位置：<a href="/">首页</a> &gt; <a href="travelindex.aspx">旅游指南</a> </div>
    </div>

    <div class="ipage" style="margin-top: 12px;">
        <div class="tipage">
            <div class="travelicon"></div>
            <div class="travelmain">
                <!--吃-->
                <div class="eatdiv">
                    <div class="foods">
                        <h4>特色菜肴<span><a href="specialfood.aspx">MORE</a></span></h4>
                        <%if (caiyao != null && caiyao.Count > 0)
                          {
                              var firstCaiyao = caiyao.First();
                        %>
                        <div class="inbox">
                            <%if (!string.IsNullOrEmpty(firstCaiyao.logo))
                              { %>
                            <a href="fooddetail.aspx?id=<%=firstCaiyao.id %>" target="_blank"><img src="<%=firstCaiyao.logo %>" /></a>
                            <%}
                              else
                              { %>
                            <img src="css/images/tmp07.png" />
                            <%} %>
                            <div>
                                <h5><a href="fooddetail.aspx?id=<%=firstCaiyao.id %>" target="_blank"><%=Utility.CutString(firstCaiyao.title,9,false) %></a></h5>
                                <%=Utility.CutString(Utility.StripHtml(firstCaiyao.introduce),24,true) %><a href="fooddetail.aspx?id=<%=firstCaiyao.id %>" target="_blank">【详情】</a>
                            </div>
                        </div>

                        <ul>
                            <%for (int i = 1; i < caiyao.Count; i++)
                              {
                                  var tag = (i + 1).ToString();
                                  var cy = caiyao[i];
                            %>
                            <li><span><%=tag %></span><a href="fooddetail.aspx?id=<%=cy.id %>" target="_blank"><%=Utility.CutString(cy.title,10,false) %></a></li>
                            <%} %>
                        </ul>
                        <%} %>
                    </div>

                    <div class="xiaochi">
                        <h4>特色小吃<span><a href="specialsnack.aspx">MORE</a></span></h4>
                        <%if (xiaochi != null && xiaochi.Count > 0)
                          {
                              var firstXiaochi = xiaochi.First();
                        %>
                        <div class="inbox">
                            <%if (!string.IsNullOrEmpty(firstXiaochi.logo))
                              { %>
                            <a href="fooddetail.aspx?id=<%=firstXiaochi.id %>" target="_blank"><img src="<%=firstXiaochi.logo %>" /></a>
                            <%}
                              else
                              { %>
                            <img src="css/images/tmp07.png" />
                            <%} %>
                            <div>
                                <h5><a href="fooddetail.aspx?id=<%=firstXiaochi.id %>" target="_blank"><%=firstXiaochi.title %></a></h5>
                                <%=Utility.CutString(Utility.StripHtml(firstXiaochi.introduce),24,true) %><a href="fooddetail.aspx?id=<%=firstXiaochi.id %>" target="_blank">【详情】</a>
                            </div>
                        </div>

                        <ul>
                            <%for (int i = 1; i < xiaochi.Count; i++)
                              {
                                  var tag = (i + 1).ToString();
                                  var xc = xiaochi[i];
                            %>
                            <li><span><%=tag %></span><a href="fooddetail.aspx?id=<%=xc.id %>" target="_blank"><%=Utility.CutString(xc.title,10,false) %></a></li>
                            <%} %>
                        </ul>
                        <%} %>
                    </div>

                    <div class="rests">
                        <h4>特色餐馆<span><a href="specialfood.aspx">MORE</a></span></h4>
                        <div class="inbox">
                            <%if (resturants != null && resturants.Count > 0)
                              {
                                  var firstResturant = resturants.First();
                            %>
                            <%if (!string.IsNullOrEmpty(firstResturant.img))
                              { %>
                            <img src="<%=firstResturant.img %>" />
                            <%}
                              else
                              { %>
                            <img src="css/images/tmp07.png" />
                            <%} %>
                            <div>
                                <h5><a href="restdetail.aspx?id=<%=firstResturant.id %>" target="_blank"><%=Utility.CutString(firstResturant.resturantname,9,false) %></a></h5>
                                人均消费：<font color="#FF6600">￥<%=firstResturant.averagecosume %></font><br />
                                容纳人数：<font color="#FF6600"><%=firstResturant.holdmans %>人</font>
                            </div>
                        </div>

                        <ul>
                            <%for (int i = 1; i < resturants.Count; i++)
                              {
                                  var tag = (i + 1).ToString();
                                  var r = resturants[i];
                            %>
                            <li><span><%=tag %></span><a href="restdetail.aspx?id=<%=r.id %>" target="_blank"><%=Utility.CutString(r.resturantname,10,false) %></a></li>
                            <%} %>
                        </ul>
                        <%} %>
                    </div>
                </div>

                <!--住-->
                <div class="hoteldiv">
                    <h4>星级酒店<span><a href="travelhotel.aspx">MORE</a></span></h4>
                    <%for (int i = 0; i < 3 && i < hotels.Count; i++)
                      {
                          var hotel = hotels[i];
                    %>
                    <div class="besthotel">
                        <%if (!string.IsNullOrEmpty(hotel.img))
                          { %>
                        <a href="travelhoteldetail.aspx?id=<%=hotel.id %>" target="_blank">
                            <img src="<%=hotel.img %>" /></a>
                        <%}
                          else
                          { %>
                        <a href="travelhoteldetail.aspx?id=<%=hotel.id %>" target="_blank">
                            <img src="css/images/tmp07.png" /></a>
                        <%} %>
                        <div>
                            <h5><a href="travelhoteldetail.aspx?id=<%=hotel.id %>" target="_blank"><%=Utility.CutString(hotel.hotelname,11,false) %></a></h5>
                            <span>酒店星级：<%=Utility.GetStarHtml(hotel.hotelstar) %></span>
                            <p><%=Utility.CutString(Utility.StripHtml(hotel.introduce),30,true) %><a href="travelhoteldetail.aspx?id=<%=hotel.id %>" target="_blank">【详情】</a></p>
                        </div>
                    </div>
                    <%} %>

                    <div class="besthotel besthotellist">
                        <ul>
                            <%for (int i = 3; i < hotels.Count; i++)
                              {
                                  var tag = (i + 1).ToString();
                                  var hotel = hotels[i];
                            %>
                            <li><span><%=tag %></span><a href="travelhoteldetail.aspx?id=<%=hotel.id %>" target="_blank"><%=Utility.CutString(hotel.hotelname,7,false) %></a></li>
                            <%} %>
                        </ul>
                    </div>
                </div>

                <!--行-->
                <div class="rounddiv">
                    <h4>交通指南<span><a href="traffic.aspx">MORE</a></span></h4>
                    <%if (traffics != null && traffics.Count > 0)
                      {
                          var firstTraffic = traffics.First();
                    %>
                    <div class="explains">
                        <%if (!string.IsNullOrEmpty(firstTraffic.img))
                          { %>
                        <a href="trafficdetail.aspx?id=<%=firstTraffic.id %>" target="_blank">
                            <img src="<%=firstTraffic.img %>" /></a>
                        <%}
                          else
                          { %>
                        <a href="trafficdetail.aspx?id=<%=firstTraffic.id %>" target="_blank">
                            <img src="css/images/littlemap.png" /></a>
                        <%} %>
                        <div>
                            <h5><a href="trafficdetail.aspx?id=<%=firstTraffic.id %>" target="_blank"><%=Utility.CutString(firstTraffic.title,9,false) %></a></h5>
                            <p><%=Utility.CutString(Utility.StripHtml(firstTraffic.content),111,true) %><a href="trafficdetail.aspx?id=<%=firstTraffic.id %>" target="_blank">【详情】</a></p>
                        </div>
                    </div>

                    <div class="roundlist">
                        <ul>
                            <%for (int i = 1; i < traffics.Count; i++)
                              {
                                  var tag = (i + 1).ToString();
                                  var traffic = traffics[i];
                            %>
                            <li><span><%=tag %></span><a href="trafficdetail.aspx?id=<%=traffic.id %>" target="_blank"><%=Utility.CutString(traffic.title,8,false) %></a></li>
                            <%} %>
                        </ul>
                    </div>
                    <%} %>
                </div>

                <!--游-->
                <div class="traveldiv">
                    <div class="travellinebox">
                        <%if (lines != null && lines.Count > 0)
                          {
                              var firstLine = lines.First();
                        %>
                        <h4>推荐线路<span><a href="travelline.aspx">MORE</a></span></h4>
                        <div class="travellinebest">
                            <%if (!string.IsNullOrEmpty(firstLine.img))
                              { %>
                            <a href="traveldetail.aspx?id=<%=firstLine.id %>" target="_blank">
                                <img src="<%=firstLine.img %>" /></a>
                            <%}
                              else
                              { %>
                            <a href="traveldetail.aspx?id=<%=firstLine.id %>" target="_blank">
                                <img src="css/images/tmp07.png" /></a>
                            <%} %>
                            <div>
                                <h5><a href="traveldetail.aspx?id=<%=firstLine.id %>" target="_blank"><%=firstLine.title %></a></h5>
                                <p><%=Utility.CutString(Utility.StripHtml(firstLine.introduce),87,true) %><a href="traveldetail.aspx?id=<%=firstLine.id %>" target="_blank">【详情】</a></p>
                            </div>
                            <div class="clear" style="height: 5px;"></div>
                        </div>
                        <ul>
                            <%for (int i = 1; i < lines.Count; i++)
                              {
                                  var tag = (i + 1).ToString();
                                  var line = lines[i];
                            %>
                            <li><span><%=tag %></span><a href="traveldetail.aspx?id=<%=line.id %>" target="_blank"><%=Utility.CutString(line.title,10,false) %></a></li>
                            <%} %>
                        </ul>
                        <%} %>
                    </div>
                    <div class="travelsbox">
                        <h4>旅行社<span><a href="travel.aspx">MORE</a></span></h4>
                        <ul>
                            <%for (int i = 0; i < travelagencies.Count; i++)
                              {
                                  var tag = (i + 1).ToString();
                                  var travelagency = travelagencies[i];
                            %>
                            <li><span><%=tag %></span><a href="travelagencydetail.aspx?id=<%=travelagency.id %>" target="_blank"><%=Utility.CutString(travelagency.agencyname,15,false) %></a></li>
                            <%} %>
                        </ul>
                    </div>
                    <div class="clear"></div>
                </div>


                <!--购-->
                <div class="buydiv">
                    <div class="inbuydiv">
                        <h4>特产商品<span><a href="specialtyproducts.aspx">MORE</a></span></h4>
                        <div class="foods">
                            <%if (goods != null && goods.Count > 0)
                              {
                                  var firstGoods = goods.First();
                            %>
                            <div class="inbox">
                                <%if (!string.IsNullOrEmpty(firstGoods.logo))
                                  { %>
                                <a href="specialtyproductsdetail.aspx?id=<%=firstGoods.id%>" target="_blank">
                                    <img src="<%=firstGoods.logo %>" /></a>
                                <%}%>
                                <div>
                                    <h5><a href="specialtyproductsdetail.aspx?id=<%=firstGoods.id%>" target="_blank"><%=Utility.CutString(firstGoods.title,9,false) %></a></h5>
                                    <%=Utility.CutString(Utility.StripHtml(firstGoods.introduce),20,true) %><a href="specialtyproductsdetail.aspx?id=<%=firstGoods.id%>" target="_blank">【详情】</a>
                                </div>
                            </div>

                            <ul>
                                <%for (int i = 1; i < 7 && i < goods.Count; i++)
                                  {
                                      var tag = (i + 1).ToString();
                                      var g = goods[i];
                                %>
                                <li><span><%=tag %></span><a href="specialtyproductsdetail.aspx?id=<%=g.id%>" target="_blank"><%=Utility.CutString(g.title,7,false) %></a></li>
                                <%} %>
                            </ul>
                            <%} %>
                        </div>

                        <div class="xiaochi">
                            <%if (goods != null && goods.Count > 8)
                              {
                                  var firstGoods = goods[7];
                            %>
                            <div class="inbox">
                                <%if (!string.IsNullOrEmpty(firstGoods.logo))
                                  { %>
                                <a href="specialtyproductsdetail.aspx?id=<%=firstGoods.id %>" target="_blank">
                                    <img src="<%=firstGoods.logo %>" /></a>
                                <%} %>
                                <div>
                                    <h5><a href="specialtyproductsdetail.aspx?id=<%=firstGoods.id %>" target="_blank"><%=Utility.CutString(firstGoods.title,9,false) %></a></h5>
                                    <%=Utility.CutString(Utility.StripHtml(firstGoods.introduce),24,true) %><a href="specialtyproductsdetail.aspx?id=<%=firstGoods.id %>" target="_blank">【详情】</a>
                                </div>
                            </div>

                            <ul>
                                <%for (int i = 8; i < goods.Count; i++)
                                  {
                                      var tag = (i + 1).ToString();
                                      var g = goods[i];
                                %>
                                <li><span><%=tag %></span><a href="specialtyproductsdetail.aspx?id=<%=g.id %>" target="_blank"><%=Utility.CutString(g.title,7,false) %></a></li>
                                <%} %>
                            </ul>
                            <%} %>
                        </div>
                    </div>
                    <div class="rests">
                        <h4>推荐购物点<span><a href="shop.aspx">MORE</a></span></h4>
                        <%if (shoppingMalls != null && shoppingMalls.Count > 0)
                          {
                              var firstShoppingMall = shoppingMalls.First();
                        %>
                        <div class="inbox">
                            <%if (!string.IsNullOrEmpty(firstShoppingMall.logo))
                              { %>
                            <a href="shopdetail.aspx?id=<%=firstShoppingMall.id %>" target="_blank">
                                <img src="<%=firstShoppingMall.logo %>" /></a>
                            <%}
                              else
                              { %>
                            <a href="shopdetail.aspx?id=<%=firstShoppingMall.id %>" target="_blank">
                                <img src="css/images/tmp07.png" /></a>
                            <%} %>
                            <div>
                                <h5><a href="shopdetail.aspx?id=<%=firstShoppingMall.id %>" target="_blank"><%=Utility.CutString(firstShoppingMall.title,10,false) %>【详情】</a></h5>
                            </div>
                        </div>

                        <ul>
                            <%for (int i = 1; i < shoppingMalls.Count; i++)
                              {
                                  var tag = (i + 1).ToString();
                                  var sm = shoppingMalls[i];
                            %>
                            <li><span><%=tag %></span><a href="shopdetail.aspx?id=<%=sm.id %>" target="_blank"><%=Utility.CutString(sm.title,10,false) %></a></li>
                            <%} %>
                        </ul>
                        <%} %>
                    </div>

                </div>

                <!--娱-->
                <div class="happydiv">
                    <div class="travellinebox">
                        <h4>娱乐活动<span><a href="recreation.aspx">MORE</a></span></h4>
                        <%if (entainments != null && entainments.Count > 0)
                          {
                              for (int i = 0; i < entainments.Count; i++)
                              {
                                  var entainment = entainments[i];
                        %>
                        <div class="imagelist">
                            <%if (!string.IsNullOrEmpty(entainment.logo))
                              { %>
                            <a href="recreationdetail.aspx?id=<%=entainment.id %>" target="_blank">
                                <img src="<%=entainment.logo %>" /></a>
                            <%}
                              else
                              { %>
                            <a href="recreationdetail.aspx?id=<%=entainment.id %>" target="_blank">
                                <img src="css/images/tmp07.png" /></a>
                            <%} %>
                            <br />
                            <a href="recreationdetail.aspx?id=<%=entainment.id %>" target="_blank"><%=Utility.CutString(entainment.title,10,false) %></a>
                        </div>
                        <%}
                          } %>
                    </div>
                    <div class="travelsbox">
                        <h4>农家乐<span><a href="farmhouse.aspx">MORE</a></span></h4>
                        <%if (nongjiales != null && nongjiales.Count > 0)
                          {
                              var firstNongjiale = nongjiales.First();
                        %>
                        <div class="inbox">
                            <%if (!string.IsNullOrEmpty(firstNongjiale.logo))
                              { %>
                            <a href="nongjialedetail.aspx?id=<%=firstNongjiale.id %>" target="_blank">
                                <img src="<%=firstNongjiale.logo %>" /></a>
                            <%}
                              else
                              { %>
                            <a href="nongjialedetail.aspx?id=<%=firstNongjiale.id %>" target="_blank">
                                <img src="css/images/tmp07.png" /></a>
                            <%} %>
                            <div>
                                <h5><a href="nongjialedetail.aspx?id=<%=firstNongjiale.id %>" target="_blank"><%=Utility.CutString(firstNongjiale.title,10,false) %></a></h5>
                                <%=Utility.CutString(Utility.StripHtml(firstNongjiale.introduce),35,true) %><a href="nongjialedetail.aspx?id=<%=firstNongjiale.id %>" target="_blank">【详情】</a>
                            </div>
                        </div>

                        <ul>
                            <%for (int i = 1; i < nongjiales.Count; i++)
                              {
                                  var tag = (i + 1).ToString();
                                  var njl = nongjiales[i];
                            %>
                            <li><span><%=tag %></span><a href="#"><%=Utility.CutString(njl.title,10,false) %></a></li>
                            <%} %>
                        </ul>
                        <%} %>
                    </div>
                    <div class="clear"></div>
                </div>

            </div>
        </div>
    </div>
</asp:Content>
